﻿using System;
using System.Collections.Generic;
using System.Text;
using Android.Graphics;
using LeePong.Game.Shapes;

namespace LeePong
{
    public static class ShapesHelpers
    {
        public static Rect Round(this RectF rect)
        {
            var rec = new Rect();
            rect.Round(rec);
            return rec;
        }

        public static RectF ToRectF(this FixedRectangle rect)
        {
            return new RectF(rect.Left, rect.Top, rect.Right, rect.Bottom);
        }

        public static RectF ToRectF(this Rectangle rect)
        {
            return new RectF(rect.Left, rect.Top, rect.Right, rect.Bottom);
        }
    }
}
